<template>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="green">
        <van-swipe-item v-for="( sowing, index ) in sowing_list" :key="sowing.public_id">
            <img :src="sowing.icon_url" :alt="sowing.public_name"/>
        </van-swipe-item>
    </van-swipe>
</template>

<script>
export default {
  name: 'Sowing',
  //取父组件接收的数据
  props:{
    sowing_list: Array
  },

}
</script>

<style lang="less" scoped>
    .my-swipe {
        width: 100%;
        height: 180px;
        color: #fff;
        font-size: 20px;
        line-height: 180px;
        text-align: center;
    }
    img{
        width: 100%;
        height: 100%;
    }
    /deep/ .van-swipe__indicator{
        background: blue;
    }
</style>
